package cn.wolfcode.luowowo.common.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class GroupTravelQueryObject extends QueryObject{
    //出发地
    private String start;
    //目的地
    private String dest;
    //出发时间

    private int[] travelTimeType;  //出发时间(月份)
    //人均消费
    private int perExpendType = -1;  //人均消费类型
    private TravelCondition perExpends;
    public TravelCondition getPerExpends(){
        return TravelCondition.TRAVEL_PRE_EXPENDS.get(perExpendType);
    }

    //产品特色1表示全程无自费,2表示含自由活动,3表示纯玩无购物
    private int special = -1;

    //排序
    private int orderType;
    public String getOrderBy(){
        if(orderType == -1){
            return "id asc";
        }else if(orderType == 1){
            return "saleNum desc";
        }else if(orderType == 2){
            return "price asc";
        }else{
            return "price desc";
        }
    }

    //旅游类型
    private int travelType = -1;


}
